package test3;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class Panneau1 extends JPanel 
{
	private JTextField pseudo;
	private JButton pseudoBouton;
	private JLabel id;
	private JLabel statut;
	
	public Panneau1()
	{		
		/*id= new JLabel("Pseudo actuel : faudra mettre le statut de la BDD");add(id);
		pseudo=new JTextField("Entrez un nouveau pseudo", 20);add(pseudo);
		pseudoBouton=new JButton("Valider le pseudo"); add(pseudoBouton);
		

		statut=new JLabel("Statut");add(statut);
        String[] Statuts = {"En Ligne", "Occupe(e)", "Absent(e)"};
        JComboBox cb = new JComboBox(Statuts);add(cb);*/
	}
	public void paintComponent(Graphics g) 
	{
		/*String fichier = "icon.jpg";		
		BufferedImage im=null;
		try {
			im = ImageIO.read(new File(fichier));
		} catch (IOException e) {e.printStackTrace();}
		g.drawImage(im, 10, 10, im.getHeight(), im.getWidth(), null);	
		*/
		/*
	     super.paintComponent(g); 
	     g.drawString("Bonjour", 200, 100);
	     Font f = new Font("Serif", Font.BOLD, 36); 
	     g.setFont(f);
	     g.setColor(Color.BLUE);
	     g.drawString("Bonjour", 100, 200); */
	}
	
	
}



